<html>
<head>
	<title>Excersise 7</title>
	<link href="styles/js-console.css" rel="stylesheet" />
</head>
<body>
	<div id="js-console"></div>
	<script src="scripts/js-console.js"></script>
	<script>
	var numbers = new Array(11, 37, 42, 5, 71, 6, 4);
	var reminder;
	var divisor;
		for (var i = 0;i < 7;i++)
		{
			divisor = 2;
			do
			{
				reminder = (numbers[i] % divisor);
				divisor++;
			}
			while (reminder != 0);

			if (numbers[i] == (divisor - 1))
			{
				jsConsole.writeLine("the number " + numbers[i] + " is prime");
			}
			else
			{
				jsConsole.writeLine("the number " + numbers[i] + " is NOT prime");
			}
	}
	</script>
</body>
</html>
